package Lab10.Q5;

import java.io.*;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;

public class Q5 {
    public static void main(String[] args) throws Exception {
        copyFile("input.txt","output.txt");
    }
    public static void copyFile (String sourceFile, String targetFile) throws IOException{
        Files.copy(new File(sourceFile).toPath(), new File(targetFile).toPath(), StandardCopyOption.REPLACE_EXISTING);
    }
}
